package com.spring.widget;

import android.app.DatePickerDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.view.View;
import android.view.ViewGroup;
import android.widget.DatePicker;

import com.spring.gowhere.R;

/**
 * Created by Administrator on 2015-11-16.
 */
public class DialogDatePicker extends DatePickerDialog {
    Context mContext;

    public DialogDatePicker(Context context, DatePickerDialog.OnDateSetListener callBack,
                            int year, int monthOfYear, int dayOfMonth) {
        super(context, R.style.DialogFloating, callBack, year, monthOfYear, dayOfMonth);
        mContext = context;
    }

    @Override
    public void onClick(DialogInterface dialog, int which) {

        super.onClick(dialog, which);
    }

    @Override
    public DatePicker getDatePicker() {
        DatePicker datePicker = new DatePicker(mContext);
        datePicker.setCalendarViewShown(false);
        return datePicker;
    }


}
